package cn.jetpiece.cloud.dict.app.modular.dict.service.impl;

import cn.jetpiece.cloud.dict.app.modular.dict.entity.DictItem;
import cn.jetpiece.cloud.dict.app.modular.dict.mapper.DictItemMapper;
import cn.jetpiece.cloud.dict.app.modular.dict.service.IDictItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hancp
 * @version 1.0
 * @description: 字典明细服务实现类
 * @date 2021-11-08 10:15:39
 */
@Service
public class DictItemServiceImpl extends ServiceImpl<DictItemMapper, DictItem> implements IDictItemService {

    @Autowired
    private DictItemMapper sysDictItemMapper;

    @Override
    public List<DictItem> selectItemsByMainId(Long mainId) {
        return sysDictItemMapper.selectItemsByMainId(mainId);
    }
}
